package com.example.fireassistant_server.service;

import com.example.fireassistant_server.dto.file.FileDto;
import com.example.fireassistant_server.dto.file.FileUploadRequest;
import com.example.fireassistant_server.entity.File;
import com.example.fireassistant_server.entity.TmpSecret;
import com.example.fireassistant_server.enums.Storage;

import java.io.IOException;

public interface FileService {

    FileDto initUpload(FileUploadRequest fileUploadRequest) throws IOException;

    FileDto finishUpload(String id);

    Storage getDefaultStorage();

    void delete(String type, String id);

    void deleteById(String id);

    File getById(String id);
    TmpSecret getTmpSecret() throws IOException;
}
